package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Score;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Score record);

    Score selectByPrimaryKey(Long id);

    List<Score> selectAll();

    int updateByPrimaryKey(Score record);

    void updateScoreByUserId(@Param("userId") Long userId, @Param("ownScore") int ownScore);

    void updateOwnScore(Score score);

    void updateScoreByPay(Score score);
}